#!/bin/sh

start() {
    service mariadb start
    service php8.1-fpm start
    service nginx start
}

stop() {
    service mariadb stop
    service php8.1-fpm stop
    service nginx stop
}

status() {
    service mariadb status
    service php8.1-fpm status
    service nginx status
}

case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    restart)
        stop
        start
        ;;
    status)
        status
        ;;
    *)
        echo "Usage: lnmp {start|stop|restart|status}"
        ;;
esac

